﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Shop.Dto
{
    /// <summary>
    /// 创建商品模型输入参数DTO
    /// </summary>
    [AutoMapTo(typeof(GoodsMould))]
    public class CreateGoodsMouldInput 
    {
        /// <summary>
        /// 属性名
        /// </summary>
        [Required]
        [StringLength(GoodsMould.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 商品属性Id
        /// </summary>
        public Guid[] GoodsAttributes { get; set; }
    }
}